<template>
	<view class="container" v-if="isLoading">
		<!-- 用户协议 -->
		<mp-html :content="text"></mp-html>
		<!-- <rich-text :nodes="text"></rich-text> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isLoading: false,
				text: ''
			}
		},
		onLoad(opt) {
			if(opt) console.log('opt:', opt)
			this.getprivacyPolicy()
		},
		methods: {
			getprivacyPolicy(){
				this.$Net.get('/systemSet/userAgreement').then(res=>{
					console.log('用户协议:', res)
					// res.data.replace('src="#', 'src="data:"')
					this.text = res.data.valueStr
					this.isLoading = true
					// this.text = res.data.replace('src="#', 'src="data:')
				})
			},
		}
	}
</script>

<style lang="scss">
	page{ background-color: #f9f9f9; }
</style>

<style lang="scss" scoped>
	// @import './style.scss';
	.container{
		padding: 24rpx;
		line-height: 40rpx;
		font-size: 30rpx;
	}
</style>
